package com.tencreat.domain.mall.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.tencreat.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 商品增加
 * @author zixin
 */
@Data
public class MallSupplierGoodsAddDTO {

    @ApiModelProperty("顶级类目")
    @NotNull
    private Long topCategoryId;

    @ApiModelProperty("类目ID")
    @NotNull
    private Long categoryId;

    @ApiModelProperty("商品轮播图")
    @NotBlank
    private String gallery;

    @ApiModelProperty("商品名称")
    @NotBlank
    private String name;

    @ApiModelProperty("商品描述")
    private String brief;

    @ApiModelProperty("门市价")
    @NotNull
    private BigDecimal counterPrice;

    @ApiModelProperty("销售价")
    @NotNull
    private BigDecimal retailPrice;

    @ApiModelProperty("供应价")
    @NotNull
    private BigDecimal supplyPrice;

    @ApiModelProperty("库存")
    @NotNull
    private Long inventory;

    @ApiModelProperty("商品详情")
    private String detail;

    @ApiModelProperty("销量")
    private Long expectCommoditySales;

    @ApiModelProperty("商品规格ID")
    private List<Long> norms;

    /** 物流方式 */
    @Excel(name = "物流方式")
    @ApiModelProperty(value= "物流方式")
    private Long logisticsId;

    /** 快递模板 */
    @Excel(name = "快递模板")
    @ApiModelProperty(value= "快递模板")
    private Long templateId;

//    @ApiModelProperty(value= "会员折扣")
//    private BigDecimal memberDiscount;

    @ApiModelProperty("简介/描述")
    private String describe;

    @ApiModelProperty(value= "商品视频")
    private String videoUrl;
}
